Evaluating a clustering model is made difficult by the fact that there are no previously known true values for the cluster assignments. A successful clustering model is one that achieves a good level of separation between the items in each cluster, so we need metrics to help us measure that separation.

Add an Evaluate Model module

1. Open the Train Penguin Clustering pipeline you created in the previous unit if it's not already open.

2. In the pane on the left, in the Model Scoring & Evaluation section, drag an Evaluate Model module to the canvas, under the Assign Data to Clusters module, and connect the output of the Assign Data to Clusters module to the Scored dataset (left) input of the Evaluate Model module.

3. Ensure your pipeline looks like this:

4. Select Submit , and run the pipeline using the existing mslearn-penguin-training experiment.

5. Wait for the experiment run to finish.

6. When the experiment run has finished, select the Evaluate Model module and in the settings pane, on the Outputs + Logs tab, under Data outputs in the Evaluation results section, use the Visualize icon to view the performance metrics. These metrics can help data scientists assess how well the model separates the clusters. They include a row of metrics for each cluster, and a summary row for a combined evaluation. The metrics in each row are:

7. Close the Evaluate Model result visualization window.

Now that you have a working clustering model, you can use it to assign new data to clusters in an inference pipeline .